import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import axios from "axios";
import "./plugins/element.js";
// 引入复制组件
import clipboard from "clipboard";
// 引入markdown组件
import mavonEditor from "mavon-editor";
import Navtop from "./components/navTop";
import Navright from "./components/navRight";

Vue.config.productionTip = false;
//注册到vue原型上

Vue.prototype.clipboard = clipboard;
Vue.use(mavonEditor, axios);
Vue.prototype.$axios = axios;
Vue.prototype.$img = "http://lawpro.earnest.pro/";
Vue.component("nav-top", Navtop);
Vue.component("nav-right", Navright);
new Vue({
  router,
  render: h => h(App)
}).$mount("#app");
